
<div id="content-container">
     
    <div id="section-navigation">
	   <ul class="navi">
               <?php
               if(isset($categories)){
                   
               
               foreach ($categories as $cats) {
                   echo "<li><a href ='c_homepage?cat={$cats['cat_id']}'>".$cats['cat_name']."</a>";
                   
                   foreach ($pages as $pg) {
                       if($cats['cat_id']==$pg['cat_id']){
                            echo "<ul class ='pages'>";
                            echo "<li><a href ='c_homepage?page={$pg['page_id']}'>".$pg['page_name']."</a>";
                            echo "</li>";
                            echo "</ul>";
                       }

                   }
                   
                  /* if($cats['cat_id']==$pg['cat_id']){
                       echo "<ul class ='page'>";
                            echo "<li><a href ='#'></a>".$pg['page_name'];
                       echo "</ul>";
                   }*/
                  echo "</li>";
               }
               }
                
               ?>
	   </ul>           
</div><!--end section-navigation-->
